package com.example.mapper;

import com.example.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;


@Mapper
@Component
public interface UserMapper {

    // 注册用户
    void addUser(User user);

    // 登录用户
    @Select("select * from t_user where email = #{email} and password=md5(#{password})")
    User findDone(User user);


}
